public class Main {
    public static void main(String[] args) {


        int[] arr = {6,4,1,2,7,8,4};

        Solution solution = new Solution();
        int peakElement = solution.findPeakElement(arr);
        System.out.println(peakElement);

    }
}